package com.fjnldx.ks.pojo.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fjnldx.ks.pojo.domain.SperoTable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SchedulingShiftInModel {
    private String org;
    private String cj;
    private String gongxu;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate time;
    @JsonIgnore
    private String startTime;
    @JsonIgnore
    private String endTime;
    // 实时数据
    @JsonIgnore
    private String devSn;
    @JsonIgnore
    private String bc;
    @JsonIgnore
    private List<SperoTable> arrayLt;

    public SchedulingShiftInModel(String org, String cj, String gongxu, LocalDate time) {
        this.org = org;
        this.cj = cj;
        this.gongxu = gongxu;
        this.time = time;
    }
}
